<?php
require_once __DIR__."/Smarty/Smarty.class.php";
//用于加载smarty模板的类库方法
class Ci_smarty extends Smarty {
		public function __construct()
		{
			parent::__construct(); //相当于 new Smarty();
			$this->init();
		}

		public function init(){
//			$smarty = new Smarty();
			//实例化Smarty的配置
			$this->compile_dir = APPPATH . "views/templates_c"; //设置生成的对接文件地址
			$this->template_dir = APPPATH . "views/templates"; //设置获取html的页面地址
		}
}
